package com.molichuxing.services.infrastructure.dao;

import com.molichuxing.framework.dao.RootMapper;
import com.molichuxing.services.infrastructure.bean.OperationLogBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统操作日志表 Mapper 接口
 * </p>
 *
 * @author xuelin yi
 * @since 2019-09-20
 */
public interface OperationLogMapper extends RootMapper<OperationLogBean> {

    /**
     * 新增操作日志
     *
     * @param bean
     * @return
     */
    Integer createOperationLog(OperationLogBean bean);

    /**
     * 根据经销商id获取操作日志总数
     *
     * @param map
     * @return
     */
    Integer getOperationLogCount(@Param("map") Map<String, Object> map);

    /**
     * 根据经销商id获取操作日志记录
     *
     * @param map
     * @param pageNum
     * @param pageSize
     * @return
     */
    List<OperationLogBean> getOperationLogByDealerId(@Param("map") Map<String, Object> map, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    /**
     * 获取操作日志总条数
     * @param map
     * @return
     */
	int getOperationLogPageCount(@Param("map") Map<String, Object> map);

	/**
	 * 获取操作日志列表
	 * @param map
	 * @param pageNum
	 * @param pageSize
	 * @return
	 */
	List<OperationLogBean> getgetOperationLogPage(@Param("map") Map<String, Object> map, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
}
